package com.bootdo.app.common.aop.exception;

import lombok.Getter;
import lombok.Setter;

/**
  * @auther: Along
  * @description: 基础异常类
  */
@Getter
@Setter
public class BaseException extends RuntimeException{

    private Integer status = 500;

    public BaseException(){}
    public BaseException(String message){
        super(message);
    }
    public BaseException(Integer status,String message){
        super(message);
        this.status = status;
    }
    public BaseException(String message,Throwable throwable){
        super(message,throwable);
    }
    public BaseException(Throwable throwable){
        super(throwable);
    }


    public Integer getStatus(){
        return this.status;
    }
    public void setStatus(Integer status){
        this.status = status;
    }
}
